#include <iostream>
using namespace std;

int main()
{
	int k = 0, n = 0;
	cin >> k;
	for(double s = 0; s <=k; ++n, s += 1.0 / n);
	
	cout << n << endl;
	return 0;
}
